//
//  City.m
//  YYZB
//
//  Created by 顾悦 on 16/3/21.
//
//

#import "City.h"

@implementation City

- (instancetype)initWithDictionary:(NSDictionary *)d {
    City *item = [self class].new;
    item.provinceID = d[@"ProvinceId"];
    item.ID = d[@"CityId"];
    item.name = d[@"CityName"];
    item.namePY = d[@"CityNamePY"];
    return item;
}

- (instancetype)initWithName:(NSString *)name {
    City *item = [self class].new;
    item.name = name;
    return item;
}

- (instancetype)initWithID:(NSString *)ID name:(NSString *)name {
    City *item = [self class].new;
    item.ID = ID;
    item.name = name;
    return item;
}

@end
